import java.io.IOException;

public class Main {
   public static void main(String[] args) throws IOException {
      int clientCount = 5;

      new Thread(new Runnable() {
         @Override
         public void run() {
            new Task().task(clientCount);
         }
      }).start();

      for (int i = 0; i < clientCount; i++) {
         new Thread(new ClientRunnable()).start();
      }
   }
}